home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / QuickDraw 3D / Documentation / d e v e l o p / Develop Issue 23 article / Geometry Sample / Headers / DragSupport.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-14  |  748 b   |  29 lines  |  [TEXT/MPS ]

  1.  
  2.  
  3. #ifndef __DRAGSUPPORT__
  4. #define __DRAGSUPPORT__
  5.  
  6. #include <Drag.h>
  7. #include <Windows.h>
  8.  
  9. struct DragHandlerGlobals {
  10.     Boolean     acceptableDragFlag;
  11.     Rect        currDragRect;
  12. };
  13. typedef struct DragHandlerGlobals DragHandlerGlobals, *DragHandlerGlobalsPtr;
  14.  
  15.  
  16.  
  17. Boolean DragMgrPresent(void);
  18. OSErr InstallDragHandlers(WindowPtr);
  19. void RemoveDragHandlers(WindowPtr);
  20. Boolean DragItemsAreAcceptable(DragReference);
  21. pascal OSErr DragTracker(DragTrackingMessage, WindowPtr, void *, DragReference);
  22. pascal OSErr DragReceiver(WindowPtr, void *, DragReference);
  23. OSErr StartDrag(WindowPtr win, EventRecord *event);
  24.  
  25. Boolean DragIsNotInSourceWindow(DragReference);
  26. OSErr AddTextFlavor(DragReference, ItemReference, StringPtr);
  27. void OutlineRegion(RgnHandle);
  28.  
  29. #endif